package com.shiguiwu.springmybatis.spring.event.spring;

import lombok.Data;
import lombok.Getter;
import org.springframework.context.ApplicationEvent;

/**
 * @description: 用户注册事件
 * @author: stone
 * @date: Created by 2021/4/24 22:28
 * @version: 1.0.0
 * @pakeage: com.shiguiwu.springmybatis.spring.event.spring
 */
public class UserRegEvent extends ApplicationEvent {

    @Getter
    private String username;
    /**
     * Create a new {@code ApplicationEvent}.
     *
     * @param source the object on which the event initially occurred or with
     *               which the event is associated (never {@code null})
     */
    public UserRegEvent(Object source,String username) {
        super(source);
        this.username = username;
    }
}
